/**
 * Created by WEN on 2016/9/27.
 */
public class SumTwoInteger {
    public int getSum(int a, int b) {
        int sum = a^b;
        int bit = (a&b)<<1;
        if (bit==0){
            System.out.println(bit+","+sum);
            return sum;
        }else{
            System.out.println(bit+","+sum);
            return getSum(sum,bit);
        }
    }
}
